<!--%import("filter/insert_forum.xml")-->
<!--%import("js/forum_admin.js")-->
<!--#include("header.html")-->

     <div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">
			<form id="_form" action="./" method="post" onsubmit="return procFilter(this, insert_forum)" enctype="multipart/form-data">
				<input type="hidden" name="page" value="{$page}" />
				<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />

				<input type="hidden" name="use_anonymous" value="{$module_info->use_anonymous}" />
				<input type="hidden" name="allow_anonymous_search" value="{$module_info->allow_anonymous_search}" />
				<input type="hidden" name="consultation" value="{$module_info->consultation}" />

				<input type="hidden" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}" />
				<input type="hidden" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}" />
				<input type="hidden" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}" />
				
				<h2 class="xeAdmin triggerModuleInfo"><a href="javascript: void(0);">{$lang->module_info}</a></h2>
			    <table cellspacing="0" cellpadding="0" class="xe-ui-form-table containerModuleInfo">
                    <tbody>
				    <!--@if($logged_info->is_admin!='Y')-->
				    	<input type="hidden" name="mid" value="{$module_info->mid}" />
				    <!--@else-->
					    <tr>
					        <td class="v-top nowrap"><p>{$lang->mid}</p></td>
					        <td class="v-top">
					        	<p>
					            <input type="text" name="mid" value="{$module_info->mid}" class="xe-ui-panel-text" maxlength="40" />
					            <p class="desc">{$lang->about_mid}</p>
					            </p>
					        </td>
					    </tr>
				    <!--@end-->
					    <tr>
					        <td class="v-top nowrap"><p>{$lang->module_category}</p></td>
					        <td class="v-top">
					        	<p>
						            <select name="module_category_srl" class="xe-ui-panel-select">
						                <option value="0">{$lang->notuse}</option>
						                <!--@foreach($module_category as $key => $val)-->
						                <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
						                <!--@end-->
						            </select>
						            <p class="desc">{$lang->about_module_category}</p>
					            </p>
					        </td>
					    </tr>
					    <tr>
					        <td class="v-top nowrap"><p>{$lang->forum_title}</p></td>
					        <td class="v-top">
					            <p>
						            <input title="{$lang->forum_title_description}" type="text" name="browser_title" value="{$module_info->browser_title}"  class="xe-ui-panel-text" />
						            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','title')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray"><span>{$lang->cmd_find_langcode}</span></a>
					            </p>
					        </td>
					    </tr>
					    <tr>
					        <td class="v-top nowrap"><p>{$lang->description}</p></td>
					        <td class="v-top">
					        	<p>
						            <textarea title="{$lang->about_description}" type="text" name="description" value="{$module_info->description}"  class="xe-ui-panel-textarea f-left" rows="5" cols="40" />{htmlspecialchars($module_info->description)}</textarea>
						            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','comment')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray f-left">{$lang->cmd_find_langcode}</a>
					            </p>
					        </td>
					    </tr>
				    <tbody>
				</table>
				<script>
				jQuery("h2.triggerModuleInfo").click(function () {
				jQuery("table.containerModuleInfo").fadeToggle(100);
				});    
				</script>
		 </div>		
	</div>	
	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">	    
			    <h2 class="xeAdmin triggerAdminInfo"><a href="javascript: void(0);">{$lang->admin_info}</a></h2>
			    <table cellspacing="0" cellpadding="0" class="xe-ui-form-table containerAdminInfo">
					<tbody>
					    <tr>
					        <td class="v-top"><p>{$lang->admin_mail}</p></td>
					        <td>
				        		<p>
					            <input title="{$lang->about_admin_mail}" type="text" name="admin_mail" value="{$module_info->admin_mail}"  class="xe-ui-panel-text" />
					            </p>
					        </td>
					    </tr>
					</tbody>
			    </table>
			    <script>
				jQuery("h2.triggerAdminInfo").click(function () {
				jQuery("table.containerAdminInfo").fadeToggle(100);
				});    
				</script>
	  	</div>	
	</div>
	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">	    
			    <h2 class="xeAdmin triggerContentInfo"><a href="javascript: void(0);">{$lang->content_info}</a></h2>
			    <table cellspacing="0" cellpadding="0" class="xe-ui-form-table containerContentInfo">
			    	<tbody>
					    <tr>
					        <td class="v-top"><p>{$lang->header_text}</p></td>
					        <td>
				        		<p>
							        <textarea rows="4" cols="40" title="{$lang->about_header_text}" name="header_text" class="xe-ui-panel-textarea f-left" id="header_text">{htmlspecialchars($module_info->header_text)}</textarea>
							        <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','header_text')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray f-left">{$lang->cmd_find_langcode}</a>
							    </p>
					        </td>
					    </tr>
					    <tr>
					        <td class="v-top"><p>{$lang->footer_text}</p></td>
					        <td  class="v-top">
				        		<p>
							        <textarea rows="4" cols="40" title="{$lang->about_footer_text}" name="footer_text" class="xe-ui-panel-textarea f-left" id="footer_text">{htmlspecialchars($module_info->footer_text)}</textarea>
							        <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','footer_text')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray f-left">{$lang->cmd_find_langcode}</a>
							    </p>
					        </td>
					    </tr>
					</tbody>
			    </table>
				<script>
					jQuery("h2.triggerContentInfo").click(function () {
						jQuery("table.containerContentInfo").fadeToggle(100);
						jQuery(this).closest('div.xe-ui-panel-content').next('div.xe-ui-panel-controller').fadeToggle(100);
					});    
				</script>
			</form>
		</div>
		<div class="xe-ui-panel-controller">
	    	<hr />
	    	<p class="center">
	    		<a href="#" onclick="jQuery('#_form').submit();" class="xe-ui-button-green">{$lang->cmd_registration}</a>
				<a href="#" onclick="history.back(); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_back}</span></a>
			</p>
	    </div>
	 </div>
</div>